Ext.define('carManage.view.milageInfo.EditOrAddForm', {
    extend: 'Ext.form.Panel',
    alias: 'widget.editOrAddForm',
    labelWidth: 60,
    width: '100%',
    height: '100%',
    bodyStyle: 'padding: 4px',
    border: false,
    autoscroll: true,
    frame: true,
    autoScroll: true,
    items: [{
            xtype: 'container',
            anchor: '100%',
            layout: 'hbox',
            items: [{
                    xtype: 'container',
                    flex: 1,
                    layout: 'anchor',
                    items: [{
                            xtype: 'hidden',
                            name: 'id'
                        }, {
                            xtype: 'combo',
                            fieldLabel: '车牌号码',
                            name: 'car_code',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '车牌号码',
                            anchor: '95%',
                            typeAhead: true,
                            queryParam: 'name',
                            autoSelect: false,
                            triggerAction: 'all',
                            store: 'CarList_store'
                        }, {
                            xtype: 'datefield',
                            fieldLabel: '抄公里数时间',
                            emptyText: '抄公里数时间（必填）',
                            allowBlank: false,
                            altFormats: 'Ymd',
                            format: 'Ymd',
                            dateFormat: 'Ymd',
                            name: 'time',
                            anchor: '95%'
                        }, {
                            xtype: 'combo',
                            fieldLabel: '驾驶员',
                            name: 'driver',
                            displayField: 'name',
                            valueField: 'name',
                            emptyText: '驾驶员',
                            anchor: '95%',
                            typeAhead: true,
                            triggerAction: 'all',
                            queryParam: 'name',
                            minChars: 2,
                            store: 'DriverComboStore'
                        }, {
                            xtype: 'numberfield',
                            fieldLabel: '仪表盘读数',
                            emptyText: '仪表盘读数（必填）',
                            allowBlank: false,
                            name: 'milage',
                            anchor: '95%'
                        }
                    ]
                }]
        }],
    initComponent: function() {
        this.callParent(arguments);
    }
});